import request from '@/utils/request'

//从配置中获取业务的地址
import {baseUrlConfig} from '@/config/config'
const basePath = baseUrlConfig.businessBaseUrl

interface Order{
    column:String;
    method:String;
}
export interface PageListType {
    pageNum:number;
    pageSize:number;
    condition: {
        alarmType: String;
        terminal?:String;
        createTime?:String;
        order?:Array<Order>;
    }
}

// 获取分页列表
export const alarmPageList = (data:PageListType) => {
  return request({
    url: basePath + '/keynote/alarm/find/page',
    method: 'post',
    data
  })
}

// 导出
export const getExportFiles = (data: any) => {
  return request({
    responseType: 'blob',
    url: basePath + '/keynote/alarm/export',
    method: 'post',
    data
  })
}
